﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IpTest
{
    public static class ListExtensions
    {

        /// <summary>
        /// 并接字符串
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="theList"></param>
        /// <param name="s"></param>
        /// <returns></returns>
        public static string ToString<T>(this IList<T> theList, string s)
        {
            return theList != null ? string.Join(s, theList) : null;
        }
    }
}
